# -*- ecoding: utf-8 -*-
# @ModuleName: product_api
# @Author: wangwei 
# @Time: 2023/10/18 22:50
from api.seller.sellerbaseapi import SellerBaseApi


class AddProduct(SellerBaseApi):

    def __init__(self):
        super().__init__()
        self.url = f"{self.host}/seller/goods"
        self.method = "post"
        self.json = {
    "brand_id": "",
    "category_id": 238,
    "category_name": "",
    "goods_name": "汤姆叔叔产品砂锅",
    "sn": "sn12345432",
    "price": "500",
    "mktprice": "900",
    "cost": "300",
    "weight": "2",
    "goods_gallery_list": [
        {
            "img_id": -1,
            "original": "http://82.156.74.26:7000/statics/attachment/goods/2023/10/18/23/28186373.jpeg",
            "sort": 0
        }
    ],
    "quantity": 99999,
    "goods_transfee_charge": 1,
    "has_changed": 0,
    "market_enable": 1,
    "template_id": 0,
    "exchange": {
        "category_id": "",
        "enable_exchange": 0,
        "exchange_money": 0,
        "exchange_point": 0
    },
    "shop_cat_id": 118,
    "meta_description": "",
    "meta_keywords": "",
    "page_title": "",
    "goods_params_list": [],
    "sku_list": [],
    "intro": ""
}
